home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tools / vim / src / ascii.h < prev    next >
C/C++ Source or Header  |  1995-03-09  |  787b  |  38 lines

  1. /* vi:ts=4:sw=4
  2.  *
  3.  * VIM - Vi IMproved        by Bram Moolenaar
  4.  *
  5.  * Read the file "credits.txt" for a list of people who contributed.
  6.  * Read the file "uganda.txt" for copying and usage conditions.
  7.  */
  8.  
  9. /*
  10.  * Definitions of various common control characters
  11.  */
  12.  
  13. #define NUL                     '\000'
  14. #define BS                        '\010'
  15. #define BS_STR                    (char_u *)"\010"
  16. #define TAB                     '\011'
  17. #define NL                        '\012'
  18. #define NL_STR                    (char_u *)"\012"
  19. #define CR                        '\015'
  20. #define ESC                     '\033'
  21. #define ESC_STR                 (char_u *)"\033"
  22. #define DEL                     0x7f
  23. #define CSI                     0x9b
  24.  
  25. #define Ctrl(x) ((x) & 0x1f)
  26. #define Meta(x) ((x) | 0x80)
  27.  
  28. /*
  29.  * character that separates dir names in a path
  30.  */
  31. #ifdef MSDOS
  32. # define PATHSEP '\\'
  33. # define PATHSEPSTR "\\"
  34. #else
  35. # define PATHSEP '/'
  36. # define PATHSEPSTR "/"
  37. #endif
  38.